package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.bac.BacCultrueInfo;
import com.ysd.lis.entity.bac.BacCultureCombination;
import com.ysd.lis.entity.bac.BacStainingResult;
import com.ysd.lis.service.bac.BacCultrueInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wanghuaixing
 * @since 2024-04-16
 */
@RestController
@RequestMapping("/bac-cultrue-info")
public class BacCultrueInfoController extends BaseController {

    @Autowired
    BacCultrueInfoService bacCultrueInfoService;

    @ApiOperation("查询")
    @GetMapping("/findBacCultureList")
    public Result findBacCultureList(BacCultrueInfo bacCultrueInfo) {
        return bacCultrueInfoService.findBacCultureList(bacCultrueInfo);
    }


    @ApiOperation("批量新增")
    @PostMapping("/batchAddBacCultrueInfo")
    public Result batchAddBacCultrueInfo(@RequestBody List<BacCultrueInfo> bacCultrueInfoList){
        return  bacCultrueInfoService.batchAddBacCultrueInfo(bacCultrueInfoList);
    }





}
